/*
 * Example lifted from cppreference
 * https://en.cppreference.com/w/cpp/types/byte
 * */
#include <cxxomfort/cstddef.hpp>
#include <iostream>
#include <cstddef>
 
int main()
{
	using namespace std;
    //std::byte b{42}; // can not convert in C++<17
    byte b = cxxomfort::fix::to_byte(42); // pre-C++17
    cout << to_integer<int>(b)<< "\n";
 
    // b *= 2 compilation error
    b <<= 1;
    cout << to_integer<int>(b) << "\n";
}

